package com.zkh.myutils.proxy.util;

import java.lang.reflect.Type;

/**
 * 代理方法参数读取类
 * @author zkh
 */
public class ParamReader {
	//参数名
	private String paramName;
	//参数值
	private Object paramValue;
	//参数类型
	private Class<?> type;
	//参数类型
	private Type parameterizedType;
	//参数索引
	private int index;
	
	public ParamReader(String paramName, Object paramValue, Class<?> type, Type parameterizedType, int index) {
		super();
		this.paramName = paramName;
		this.paramValue = paramValue;
		this.type = type;
		this.parameterizedType = parameterizedType;
		this.index = index;
	}
	
	public String getParamName() {
		return paramName;
	}
	public void setParamName(String paramName) {
		this.paramName = paramName;
	}
	public Object getParamValue() {
		return paramValue;
	}
	public void setParamValue(Object paramValue) {
		this.paramValue = paramValue;
	}
	public Class<?> getType() {
		return type;
	}
	public void setType(Class<?> type) {
		this.type = type;
	}
	public Type getParameterizedType() {
		return parameterizedType;
	}
	public void setParameterizedType(Type parameterizedType) {
		this.parameterizedType = parameterizedType;
	}
	public int getIndex() {
		return index;
	}
	public void setIndex(int index) {
		this.index = index;
	}
	@Override
	public String toString() {
		return "ParamReader [paramName=" + paramName + ", paramValue="
				+ paramValue + ", type=" + type + ", parameterizedType="
				+ parameterizedType + ", index=" + index + "]";
	}
}
